/**
 * @author 陈泰来
 * @version V1.0
 * @Project echo-java-base
 * @Title
 * @Description 原型客户端
 * @Package designmodel.prototype.client
 * @date 2021/3/25 5:15 下午
 * @Copyright:学如逆水行舟，不进则退 .
 */
package designmodel.prototype.model;

public class TestClient {

    public static void main(String[] args) throws CloneNotSupportedException {
        Resume resume1 = new Resume("张三", 24, "阿里巴巴开源");
        Resume resume2 = (Resume) resume1.clone();
        Resume resume3 = (Resume) resume1.clone();

        resume2.setName("王五");

        System.out.println(resume2 == resume3);



        resume1.show();
        resume2.show();
        resume3.show();
    }
}
